//
//  MSFilterViewController.h
//  JYG_Agent
//
//  Created by apple on 15/10/19.
//  Copyright (c) 2015年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, MSFilterBarType) {
    MSFilterBarTypeHorizontalBar,           //横向筛选bar
    MSFilterBarTypeNone                     //无筛选bar
};

@protocol MSFilterDelegate <NSObject>
//筛选回调
- (void)selectedFilterWithParmas:(NSDictionary *)params;
@end
@interface MSFilterViewController : UIViewController
//filterBar类型
@property(nonatomic,assign)MSFilterBarType barType;
//筛选视图显示区域(根据window计算)
@property(nonatomic,assign)CGRect visibleRect;
@property(nonatomic,weak)id<MSFilterDelegate> delegate;
//筛选列表数据源
@property(nonatomic,copy)NSArray* dataArray;
//筛选bar标题
@property(nonatomic,copy)NSArray* titleArray;
//无筛选bar时触发弹出筛选列表的按钮
@property(nonatomic,weak)GXButton *triggerBtn;
@property(nonatomic,assign)BOOL shouldCoverTabbar;
//无筛选bar时弹出筛选列表
- (void)showInView:(UIView *)superView;
//无筛选bar时关闭筛选列表
- (void)dismiss;
//清除已选条件
- (void)resetParams;
@end
